import java.util.Scanner;


/** Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-04-16
 * Time: 19:48
 */
public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.creakTree();
        BinaryTree.TreeNode root2 = binaryTree.covert(root);

    }

    public static void main2(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextLine()){
            String str = scanner.nextLine();
            BinaryTree.TreeNode root = binaryTree.creatTree2(str);
            binaryTree.inOrder(root);
        }
    }
    public static void main1(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root1 = binaryTree.creakTree();
        BinaryTree.TreeNode root2 = binaryTree.creakTree();

        boolean ret = binaryTree.isSameTree(root1, root2);
        System.out.println(ret);
    }

}
